package per.sen.shopping.domain.services;

import io.smallrye.mutiny.Uni;
import per.sen.shopping.infrastructure.common.response.ApiResponse;
import per.sen.shopping.model.dto.SysBackendUserDTO;
import per.sen.shopping.model.po.SysBackendUserPO;

/**
 * @Describe: 领域服务:用户
 * @Author: LYS
 * @Date: 2024/5/30 19:17
 */
public interface SysBackendUserDomain {
    /**
     * @Describe: 用户登录
     * @Author: LYS
     * @Date: 2024/5/30 19:17
     */

    Uni<ApiResponse> login(SysBackendUserDTO sysBackendUserDTO);
    /**
     * @Describe: 生成登录令牌
     * @Author: LYS
     * @Date: 2024/5/30 20:32
     */
    String createToken(SysBackendUserPO sysBackendUserPO);

}
